package com.depthsdata.coe.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-12-27 11:41:50
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class BusinessProcessDiagram implements java.io.Serializable {
    
    public BusinessProcessDiagram() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private long businessProcessId;	
	
	/**
	 * Attribute businessProcessId Be Seted Falg
	 */
	private boolean businessProcessIdSetted = false;
	
		/**
	 * Attribute businessProcessId is Null Falg
	 */
	private boolean businessProcessIdNull = false;
	
	   
    /**
	 * Get businessProcessId
	 * 
	 * @return long
	 */
	final public long getBusinessProcessId(){
	    
				
		return businessProcessId;
				
	}
	
	/**
	 * Set businessProcessId
	 * 
	 * @param long
	 */
	final public void setBusinessProcessId(long businessProcessId ){
		
				
		this.businessProcessId = businessProcessId;
				
		this.businessProcessIdSetted = true;
		
				
				
		this.setBusinessProcessIdNull(false);
				
				
	}
	
	/**
	 * Get businessProcessId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessProcessIdSetted(){
		return this.businessProcessIdSetted;
	}
	
		
	/**
	 * Set businessProcessId Null
	 * 
	 */
	final public void setBusinessProcessIdNull(){
			
		this.businessProcessIdNull = true;
		
	}	
	
	final public void setBusinessProcessIdNull(boolean aNullFlag){
			
		this.businessProcessIdNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessProcessIdNull(){
			
		return this.businessProcessIdNull;
		
	}
	
    	
	   
		
		
		
	private String businessProcessDiagram;	
	
	/**
	 * Attribute businessProcessDiagram Be Seted Falg
	 */
	private boolean businessProcessDiagramSetted = false;
	
		/**
	 * Attribute businessProcessDiagram is Null Falg
	 */
	private boolean businessProcessDiagramNull = false;
	
	   
    /**
	 * Get businessProcessDiagram
	 * 
	 * @return String
	 */
	final public String getBusinessProcessDiagram(){
	    
				
		if(isBusinessProcessDiagramNull()){
			return null;
		}
		else{
			return StringUtils.trim(businessProcessDiagram);
		}
				
	}
	
	/**
	 * Set businessProcessDiagram
	 * 
	 * @param String
	 */
	final public void setBusinessProcessDiagram(String businessProcessDiagram ){
		
				
		this.businessProcessDiagram = StringUtils.trim(businessProcessDiagram);
				
		this.businessProcessDiagramSetted = true;
		
				
				
		this.setBusinessProcessDiagramNull(this.businessProcessDiagram == null);
				
				
	}
	
	/**
	 * Get businessProcessDiagram Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isBusinessProcessDiagramSetted(){
		return this.businessProcessDiagramSetted;
	}
	
		
	/**
	 * Set businessProcessDiagram Null
	 * 
	 */
	final public void setBusinessProcessDiagramNull(){
			
		this.businessProcessDiagramNull = true;
		
	}	
	
	final public void setBusinessProcessDiagramNull(boolean aNullFlag){
			
		this.businessProcessDiagramNull = aNullFlag;
		
	}	
	
	final public boolean isBusinessProcessDiagramNull(){
			
		return this.businessProcessDiagramNull;
		
	}
	
    	
	   
		
		
		
	private java.util.Date updateTime;	
	
	/**
	 * Attribute updateTime Be Seted Falg
	 */
	private boolean updateTimeSetted = false;
	
		/**
	 * Attribute updateTime is Null Falg
	 */
	private boolean updateTimeNull = false;
	
	   
    /**
	 * Get updateTime
	 * 
	 * @return java.util.Date
	 */
	final public java.util.Date getUpdateTime(){
	    
				
		return updateTime;
				
	}
	
	/**
	 * Set updateTime
	 * 
	 * @param java.util.Date
	 */
	final public void setUpdateTime(java.util.Date updateTime ){
		
				
		this.updateTime = updateTime;
				
		this.updateTimeSetted = true;
		
				
				
		this.setUpdateTimeNull(this.updateTime == null);
				
				
	}
	
	/**
	 * Get updateTime Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isUpdateTimeSetted(){
		return this.updateTimeSetted;
	}
	
		
	/**
	 * Set updateTime Null
	 * 
	 */
	final public void setUpdateTimeNull(){
			
		this.updateTimeNull = true;
		
	}	
	
	final public void setUpdateTimeNull(boolean aNullFlag){
			
		this.updateTimeNull = aNullFlag;
		
	}	
	
	final public boolean isUpdateTimeNull(){
			
		return this.updateTimeNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof BusinessProcessDiagram) == false){
			return false;
		}
		BusinessProcessDiagram other = (BusinessProcessDiagram) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("businessProcessId=");
		buffer.append(this.businessProcessId);
		        
		buffer.append("businessProcessDiagram=");
		buffer.append(this.businessProcessDiagram);
		        
		buffer.append("updateTime=");
		buffer.append(this.updateTime);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}